package com.cec.controller.user;


import com.cec.dto.FeedbackDTO;
import com.cec.result.Result;
import com.cec.service.admin.FeedbackService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 反馈表 前端控制器
 * </p>
 *
 * @author lt
 * @since 2024-10-25
 */
@Slf4j
@RestController
@RequestMapping("/user/feedback")
public class UserFeedbackController {

    @Autowired
    private FeedbackService feedbackService;

    @PostMapping
    @ApiOperation("用户编写建议")
    public Result addFeedback(@RequestBody FeedbackDTO feedbackDTO){
        return feedbackService.addFeedback(feedbackDTO);
    }
}

